home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Chat & Communication / Digsby build 37 / digsby_setup.exe / lib / PIL / ImageSequence.pyo (.txt) < prev    next >
Python Compiled Bytecode  |  2008-10-13  |  773b  |  26 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.5)
  3.  
  4.  
  5. class Iterator:
  6.     
  7.     def __init__(self, im):
  8.         if not hasattr(im, 'seek'):
  9.             raise AttributeError('im must have seek method')
  10.         
  11.         self.im = im
  12.  
  13.     
  14.     def __getitem__(self, ix):
  15.         
  16.         try:
  17.             if ix:
  18.                 self.im.seek(ix)
  19.             
  20.             return self.im
  21.         except EOFError:
  22.             raise IndexError
  23.  
  24.  
  25.  
  26.